
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont el-icon-icon-40one"></i>
                    <div class="name">user</div>
                    <div class="fontclass">.el-icon-icon-40one</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-iconset0218"></i>
                    <div class="name">铃铛</div>
                    <div class="fontclass">.el-icon-icon-iconset0218</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-mima"></i>
                    <div class="name">password</div>
                    <div class="fontclass">.el-icon-icon-mima</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-touxiang"></i>
                    <div class="name">头像</div>
                    <div class="fontclass">.el-icon-icon-touxiang</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-shouqi"></i>
                    <div class="name">收起</div>
                    <div class="fontclass">.el-icon-icon-shouqi</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-zhankai"></i>
                    <div class="name">展开</div>
                    <div class="fontclass">.el-icon-icon-zhankai</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-caiwuguanlix"></i>
                    <div class="name">caiwuguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-caiwuguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-caiwuguanlix1"></i>
                    <div class="name">caiwuguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-caiwuguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-dingdanliebiaox"></i>
                    <div class="name">dingdanliebiao@3x</div>
                    <div class="fontclass">.el-icon-icon-dingdanliebiaox</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-diaoduguanlix"></i>
                    <div class="name">diaoduguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-diaoduguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-dingdanliebiaox1"></i>
                    <div class="name">dingdanliebiao@2x</div>
                    <div class="fontclass">.el-icon-icon-dingdanliebiaox1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-diaoduguanlix1"></i>
                    <div class="name">diaoduguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-diaoduguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-jichushezx"></i>
                    <div class="name">jichushez@3x</div>
                    <div class="fontclass">.el-icon-icon-jichushezx</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-jichushezx1"></i>
                    <div class="name">jichushez@2x</div>
                    <div class="fontclass">.el-icon-icon-jichushezx1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-kefuguanlix"></i>
                    <div class="name">kefuguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-kefuguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-kefuguanlix1"></i>
                    <div class="name">kefuguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-kefuguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-shichangguanlix"></i>
                    <div class="name">shichangguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-shichangguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-shichangguanlix1"></i>
                    <div class="name">shichangguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-shichangguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-shouyex"></i>
                    <div class="name">shouye@2x</div>
                    <div class="fontclass">.el-icon-icon-shouyex</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-tongjiguanlix"></i>
                    <div class="name">tongjiguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-tongjiguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-tongjiguanlix1"></i>
                    <div class="name">tongjiguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-tongjiguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-shouyex1"></i>
                    <div class="name">shouye@3x</div>
                    <div class="fontclass">.el-icon-icon-shouyex1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-yunyingguanlix"></i>
                    <div class="name">yunyingguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-yunyingguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-yunyingguanlix1"></i>
                    <div class="name">yunyingguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-yunyingguanlix1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-zhanghaoguanlix"></i>
                    <div class="name">zhanghaoguanli@2x</div>
                    <div class="fontclass">.el-icon-icon-zhanghaoguanlix</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-icon-zhanghaoguanlix1"></i>
                    <div class="name">zhanghaoguanli@3x</div>
                    <div class="fontclass">.el-icon-icon-zhanghaoguanlix1</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">el-icon-icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
